package com.zby.test.util.factory;

/**
 * Created By zby on 21:27 2019/1/23
 */

public interface SessionFactory {

    /**
     * 开放session，事务手动提交
     *
     * @return
     */
    Session openSession();

    /**
     * 获取当前session，事务自动提交
     *
     * @return
     */
    Session getCurrentSession();
}
